package com.augurit.gzcgwsp.commonex.system.service.org;

import org.springframework.transaction.annotation.Transactional;

import com.augurit.common.system.service.org.IOmOrgService;
import com.augurit.common.system.web.org.form.OmOrgForm;

public interface IOmOrgServiceEX{
	
	//城管委增加，开始
	/**
     * 获取某一个用户的最高级父机构
     * @param userId 用户id
     * @return 所有父机构id列表
     */
    @Transactional(readOnly = true)
    public OmOrgForm getTopParentOrgOfUser(Long userId);
    
    public String getUserByDistrictCodeAndRole(String districtCode, Long roleId );
  //城管委增加，结束

    /**
     * 查询用户的机构
     */
	public OmOrgForm getUserOrg(Long userId);
	
	 public OmOrgForm getOrg(Long orgId);

	public OmOrgForm getOrgByOrgName(String name);
}
